package com.dabai.iot.core.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 设备属性
 *
 * @author kev1n
 */
@Data
public class DeviceProperty implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 属性id
     */
    @Schema(description = "属性id")
    private Long itemId;

    /**
     * 中文名称
     */
    @Schema(description = "属性中文名称")
    private String name;

    /**
     * 属性标识符
     */
    @Schema(description = "属性标识符")
    private String identifier;

    /**
     * 属性值
     */
    @Schema(description = "属性值")
    private String value;

    /**
     * 数据类型
     *
     * @see com.dabai.iot.common.enums.DataType
     */
    @Schema(description = "数据类型")
    private String dataType;

    /**
     * 精度
     */
    @Schema(description = "精度")
    private Integer scale;

    /**
     * 单位描述
     */
    @Schema(description = "单位描述")
    private String unit;

}
